package worlds 
{
	import net.flashpunk.World;
	import net.flashpunk.utils.Input;
	import net.flashpunk.FP;
	import net.flashpunk.graphics.Text;
	/**
	 * ...
	 * @author Ryan Berger
	 */
	public class TitleWorld extends World
	{
		
		public function TitleWorld() 
		{
			var infoText:Text = new Text("click to start");
			infoText.x = FP.screen.width / 2 - infoText.width / 2;
			infoText.y = FP.screen.height / 2;
			addGraphic(infoText, -1);
		}
		
		override public function update():void 
		{
			if (Input.mousePressed)
			{
				FP.world = new Gameworld();
			}
		}
	}

}